Live freelance tracking. Raw descriptions turned into structured data. Find your next tech project without the noise.
freelancer.com 🟠 2026-05-05
🔹 Extract usernames from a Telegram group using Python
👤 Client: 🇮🇳 Kozhikode, India Member since 2026-05-04
💰 Price: $212 Average bid
🚩 Problem: Scrape usernames from a specific Telegram group while adhering to rate limits and ensuring accuracy.
📦 Existing: Not specified
Specifications:
[Target] Extract @username handles of all members in a given Telegram group.
[Method] Use Telethon or Pyrogram for Python-based scraping, respecting API credentials (api_id/api_hash).
[UI/UX] Not applicable; script-driven.
[Stack] Python 3.x with either Telethon or Pyrogram library.
[Security] Ensure rate limits are respected to avoid account suspension. Implement error handling and logging.
[Format] Output as a clean CSV or JSON file, ensuring no duplicates.
Workflow:
Install required libraries (Telethon or Pyrogram) using pip.
Write script that initializes session with api_id/api_hash credentials.
Define function to accept group ID or invite link and authenticate.
Iterate through members of the group, extracting @username handles.
Implement deduplication logic to avoid saving duplicate usernames.
Save extracted usernames into a CSV or JSON file.
Test script on a provided test group to ensure accuracy and rate limit compliance.